package com.pfizer.Entity;

import java.util.Date;


/**
 * PCR--<b>打卡記錄實體</b>
 * 
 * @author krui
 * 
 */

public class PCR {

	public static final String PCRSTRING = "PCR";
	public static final String PCRIDSTRING = "PCR_ID";
	public static final String STATUSSTRING = "Status";
	public static final String USERIDSTRING = "UserID";
	public static final String USERNAMESTRING = "UserName";
	public static final String HOSPIDSTRING = "Hospital_ID";
	public static final String HOSPNAMESTRING = "Hospital_Name";
	public static final String DRIDSTRING = "Dr_ID";
	public static final String DRNAMESTRING = "Dr_Name";
	public static final String ACTIVITYSTRING = "Activity";
	public static final String ACTIVITYINPUTSTRING = "Activity_Input";
	public static final String REMARKSTRING = "Remark";
	public static final String ONDUTYLATSTRING = "OnDuty_Lat";
	public static final String ONDUTYLNGSTRING = "OnDuty_Lng";
	public static final String OFFDUTYLATSTRING = "OffDuty_Lat";
	public static final String OFFDUTYLNGSTRING = "OffDuty_Lng";
	public static final String CREATETIMESTRING = "Create_Time";
	public static final String COMPLETETIMESTRING = "Complete_Time";
	private int PCR_ID;
	private String Status;
	private String UserID;
	private String UserName;
	private String Hospital_ID;
	private String Hospital_Name;
	private String Dr_ID;
	private String Dr_Name;
	private String Activity;
	private String Activity_Input;
	private String Remark;
	private float OnDuty_Lat;
	private float OnDuty_Lng;
	private float OffDuty_Lat;
	private float OffDuty_Lng;
	private long Create_Time;
	private long Complete_Time;
	private Date dt=null;
	public int getPCR_ID() {
		return PCR_ID;
	}

	public void setPCR_ID(int pCR_ID) {
		PCR_ID = pCR_ID;
	}

	public String getStatus() {
		return Status;
	}

	public void setStatus(String status) {
		Status = status;
	}

	public String getUserID() {
		return UserID;
	}

	public void setUserID(String userID) {
		UserID = userID;
	}

	public String getUserName() {
		return UserName;
	}

	public void setUserName(String userName) {
		UserName = userName;
	}

	public String getHospital_ID() {
		return Hospital_ID;
	}

	public void setHospital_ID(String hospital_ID) {
		Hospital_ID = hospital_ID;
	}

	public String getHospital_Name() {
		return Hospital_Name;
	}

	public void setHospital_Name(String hospital_Name) {
		Hospital_Name = hospital_Name;
	}

	public String getDr_ID() {
		return Dr_ID;
	}

	public void setDr_ID(String dr_ID) {
		Dr_ID = dr_ID;
	}

	public String getDr_Name() {
		return Dr_Name;
	}

	public void setDr_Name(String dr_Name) {
		Dr_Name = dr_Name;
	}

	public String getActivity() {
		return Activity;
	}

	public void setActivity(String activity) {
		Activity = activity;
	}

	public String getActivity_Input() {
		return Activity_Input;
	}

	public void setActivity_Input(String activity_Input) {
		Activity_Input = activity_Input;
	}

	public String getRemark() {
		return Remark;
	}

	public void setRemark(String remark) {
		Remark = remark;
	}

	public float getOnDuty_Lat() {
		return this.OnDuty_Lat;
	}
	
	public void setOnDuty_Lat(String onDuty_Lat) {
		try {
			this.OnDuty_Lat = new Float(onDuty_Lat).floatValue();
		} catch (Exception e) {
			// TODO: handle exception
			this.OnDuty_Lat = 0;
		}
	}

	public void setOnDuty_Lat(float onDuty_Lat) {
		try {
			this.OnDuty_Lat = onDuty_Lat;
		} catch (Exception e) {
			// TODO: handle exception
			this.OnDuty_Lat = 0;
		}
	}

	public float getOnDuty_Lng() {
		return this.OnDuty_Lng;
	}

	public void setOnDuty_Lng(String onDuty_Lng) {
		try {
			this.OnDuty_Lng = new Float(onDuty_Lng).floatValue();
		} catch (Exception e) {
			// TODO: handle exception
			this.OnDuty_Lng = 0;
		}
	}
	public void setOnDuty_Lng(float onDuty_Lng) {
		try {
			this.OnDuty_Lng = onDuty_Lng;
		} catch (Exception e) {
			// TODO: handle exception
			this.OnDuty_Lng = 0;
		}
	}

	public float getOffDuty_Lat() {
		return this.OffDuty_Lat;
	}

	public void setOffDuty_Lat(String offDuty_Lat) {
		try {
			this.OffDuty_Lat = new Float(offDuty_Lat).floatValue();
		} catch (Exception e) {
			// TODO: handle exception
			this.OffDuty_Lat = 0;
		}
	}
	public void setOffDuty_Lat(float offDuty_Lat) {
		try {
			this.OffDuty_Lat = offDuty_Lat;
		} catch (Exception e) {
			// TODO: handle exception
			this.OffDuty_Lat = 0;
		}
		
	}

	public float getOffDuty_Lng() {
		return this.OffDuty_Lng;
	}

	public void setOffDuty_Lng(String offDuty_Lng) {
		try {
			this.OffDuty_Lng = new Float(offDuty_Lng).floatValue();
		} catch (Exception e) {
			// TODO: handle exception
			this.OffDuty_Lng = 0;
		}
	}
	public void setOffDuty_Lng(float offDuty_Lng) {
		try {
			this.OffDuty_Lng = offDuty_Lng;
		} catch (Exception e) {
			// TODO: handle exception
			this.OffDuty_Lng = 0;
		}
	}

	public long getCreat_Time() {
		return Create_Time;
	}
	public void setCreat_Time(long create_Time) {
		Create_Time = create_Time;
	}
	public void setCreat_Time(String create_Time) {
		if(create_Time.trim().length()==0)
		{
			dt =new Date();
		}
		else {
			dt=new Date(create_Time);
		}
		
		Create_Time = dt.getTime();
	}

	public long getComplete_Time() {
		return Complete_Time;
	}

	public void setComplete_Time(String complete_Time) {
		if(complete_Time.trim().length()==0)
		{
			dt =new Date();
		}
		else {
			dt=new Date(complete_Time);
		}
		Complete_Time = dt.getTime();
	}
	public void setComplete_Time(long complete_Time) {
		Complete_Time = complete_Time;
	}

}
